<template>
  <div id="app">
    <Header></Header>
    <router-view />
    <Footer v-show="$route.meta.isShowFooter"></Footer>
  </div>
</template>

<script>
import Footer from 'components/common/Footer'
import Header from 'components/common/Header'
import { mapActions } from 'vuex'
export default {
  components: {
    Footer,
    Header
  },
  created () {
    // 获取三级分类商品数据
    this.onGetBaseCategoryList()
  },
  methods: {
    ...mapActions('home', ['onGetBaseCategoryList'])
  }
}
</script>
<style lang="less">
#nprogress .bar {
  background: #ff99a9 !important;
  z-index: 9999999 !important;
}
</style>
